﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace KTSonline
{
    public static class Global
    {
        public enum Pages{ Home, Product, CartDetail, Register, Article, ForgetPass };
        public static Pages currentpage = Pages.Home;

        public static String AdminPage_getImageURL(object b)
        {
            if (b == null)
                return "";
            if (b.ToString().Contains("http://") || b.ToString().Contains("https://"))
                return b.ToString();
            else
                return "../" + b.ToString();
        }
    }
}
